package com.xmy.cultivate.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.StringUtils;
import com.xmy.cultivate.entity.MobilePermission;
import com.xmy.cultivate.service.ILklOrderService;
import com.xmy.cultivate.util.Code;
import com.xmy.cultivate.util.PageResult;
import com.xmy.cultivate.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 拉卡拉订单表 前端控制器
 * </p>
 *
 * @author hpiggy
 * @since 2025-05-25
 */
@RestController
@RequestMapping("/api/lklOrder")
public class LklOrderController {

    @Autowired
    ILklOrderService  lklOrderService;
//    @GetMapping("/lklOrder")
//    public Result findAll(@RequestParam(value = "pageNum", defaultValue = "-1") Integer pageNum,
//                          @RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize,
//                          @RequestParam(value = "payType", defaultValue = "0") String payType) {
//        String type = (String) reMap.get("type");
//        QueryWrapper<MobilePermission> queryWrapper = new QueryWrapper<>();
//        queryWrapper.eq(StringUtils.isNotBlank(type), "type", type);
//        List<MobilePermission> permissionList = iMobilePermissionService.list(queryWrapper);
//        return new Result(Code.OK, new PageResult(permissionList, (long) permissionList.size(), 1L));
//    }

}
